<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> </title>
<meta name="keywords" content=" ">
<meta name="description"  content=" ">
<base href="${ pageContext.request.contextPath }/"/>
<link rel="shortcut icon" href="favicon.ico">

<link
	href="css/bootstrap.min.css-v=3.3.5.css"
	 
	rel="stylesheet">
<link
	href="css/font-awesome.min.css-v=4.4.0.css"
	 
	rel="stylesheet">

<!-- Data Tables -->
<link
	href="css/plugins/dataTables/dataTables.bootstrap.css"
	 
	rel="stylesheet">

<link href="css/animate.min.css"
	 
	rel="stylesheet">
<link
	href="css/style.min.css-v=4.0.0.css"
 
	rel="stylesheet">
<base target="_blank">


</head>

<body class="gray-bg">


	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>
							缺陷列表<small>查找</small>
						</h5>
						<div class="ibox-tools">
							<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
							 
					 
						 <a  title="添加缺陷"
						  href="user/addBug?flag=1"
									target="_self"><img alt="添加" src="imgs/add.png" width="25px;"></a> 
							 
							  <a title="图表展示"
								href="bug/statistics"
								target="_self"><img alt="图表" src="imgs/picture.png" width="25px;"></a> 
								
								<a class="close-link"  title="刷新"
								href="javascript:window.location.reload(); "><img alt="图表" src="imgs/refulsh.png" width="25px;"></a>
	
						</div>
					</div>
					<div class="ibox-content">

						<table
							class="table table-striped table-bordered table-hover dataTables-example">
							<thead>
								<tr>
								<th>序号</th>
									<th>标题</th>
									<th>提交人</th>
									<td>严重级别</td>
								 	<th>处理人</th>
									<td>复现结果</td> 
									<td>优先级</td>
									<th>缺陷状态</th>
									<th>提交时间</th>
									<th>项目</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${requestScope.bugs}" var="bug"
									varStatus="stat">
									<tr id="data_${stat.index}">

										<td>${stat.count}</td>
										<td><a target="_self"
											href="bug/detailBug?bug_id=${bug.bug_id}"
											title="查看缺陷详情">${bug.summary}</a></td>

										<td>${bug.reporter.username}</td>
										<td>${bug.ponderance.pon_name}</td>
										<td>${bug.handler.username}</td>
										<td>${bug.result.result_name}</td>
										<td>${bug.priority}</td>
										<c:if test="${bug.bug_status == 1 }">
											<td>New</td>
										</c:if>
										<c:if test="${bug.bug_status == 2 }">
											<td>Assigned</td>
										</c:if>
										<c:if test="${bug.bug_status == 3 }">
											<td>Open</td>
										</c:if>
										<c:if test="${bug.bug_status == 4 }">
											<td>Fixed</td>
										</c:if>
										<c:if test="${bug.bug_status == 5 }">
											<td>Rejected</td>
										</c:if>
										<c:if test="${bug.bug_status == 6 }">
											<td>Postponed</td>
										</c:if>
										<c:if test="${bug.bug_status == 7 }">
											<td>Closed</td>
										</c:if>
										<c:if test="${bug.bug_status == 8 }">
											<td>Reopen</td>
										</c:if>
										<td>${bug.submite_time}</td>
										<td>${bug.project.pro_name}</td>

									</tr>
								</c:forEach>

							</tbody>


						</table>

					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript">
		function sure()
		{
		alert("确认删除？")
		}
		</script>


		<script
			src="js/jquery.min.js-v=2.1.4"></script>
		<script
			src="js/bootstrap.min.js-v=3.3.5"></script>
		<script
			src="js/plugins/jeditable/jquery.jeditable.js"></script>
		<script
			src="js/plugins/dataTables/jquery.dataTables.js" ></script>
		<script
			src="js/plugins/dataTables/dataTables.bootstrap.js" ></script>
		<script
			src="js/content.min.js-v=1.0.0" ></script>
		<script>
        $(document).ready(function(){$(".dataTables-example").dataTable();var oTable=$("#editable").dataTable();oTable.$("td").editable("http://www.zi-han.net/theme/example_ajax.php",{"callback":function(sValue,y){var aPos=oTable.fnGetPosition(this);oTable.fnUpdate(sValue,aPos[0],aPos[1])},"submitdata":function(value,settings){return{"row_id":this.parentNode.getAttribute("id"),"column":oTable.fnGetPosition(this)[2]}},"width":"90%","height":"100%"})});function fnClickAddRow(){$("#editable").dataTable().fnAddData(["Custom row","New row","New row","New row","New row"])};
    </script>
 
</body>

</html>


